Backport bug 7517 fixes from trunk.
authorJan D. <jan.h.d@swipnet.se>
Mon, 3 Jan 2011 21:26:22 +0000 (22:26 +0100)
committerJan D. <jan.h.d@swipnet.se>
Mon, 3 Jan 2011 21:26:22 +0000 (22:26 +0100)
commit68f52ed0918f40ff9f58760d119f3c0f818c8db3
tree3152287560871f6b833b4ce35ed84c19dfd80753
parent74c3ca4e1fbc22b7f31d7cd84972962a757526bc
Backport bug 7517 fixes from trunk.

* coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.

* nsfns.m (ns_set_name_iconic): Remove.
(ns_get_screen): Don't assign integer to f.
(ns_set_name_internal): New function.
(Vicon_title_format): Extern declare.
(ns_set_name): Call ns_set_name_internal.
(x_explicitly_set_name): Remove call to ns_set_name_iconic.
(x_implicitly_set_name): Ditto.
(x_set_title): Remove commet about EXPLICIT.  Call ns_set_name_internal.
(ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
Always use buffer name for title and buffer filename only for
RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
src/ChangeLog
src/coding.h
src/nsfns.m